




/*
*************************************************************************
*西瑞克斯研发管理系统
*版 本: 1.0   
*日 期：02/08/2012    
*作 者： 王浩 QQ：873987060   
*************************************************************************   
*/ 
package com.application.patent.service;
import java.util.List;
import com.manager.BaseService;
import com.manager.commons.page.PageBean;
import com.application.patent.entity.Patent;
import com.application.patent.struts.form.PatentForm;
import com.application.patent.dao.PatentDAO;
 /**
 * 
 * Description:PatentService<br />
 * 
 * Version:V0.1<br />
 * 
 * Author: 左磊 QQ：30575951    <br />
 * 
 * History: <br />
 * 
 * 02/08/2012 
 * 
 */
public class PatentService extends BaseService
{
	private PatentDAO patentDAO;

	public PatentDAO getPatentDAO() {
		return this.patentDAO;
	}

	public void setPatentDAO(PatentDAO patentDAO) {
		this.patentDAO = patentDAO;
	}
        

        public Patent getPatent(Patent patent) {
		return (Patent) this.getBaseDao().queryByPk(patent, patent.getId());
	}
	
	public Integer getAllCountPatent(PatentForm patentForm){
		return this.patentDAO.getAllCountPatent(patentForm);
	}
	
	public List<Patent> searchPatent(PatentForm patentForm, PageBean pageBean) throws Exception {
		List<Patent> patentList = (List) this.patentDAO.searchPatent(patentForm, pageBean);
		return patentList;
	}
        
        public void deletePatents(PatentForm patentForm){
	   this.patentDAO.deletePatents(patentForm);	 
	}
        public List searchPatent(final PatentForm patentForm) {
    		List<Patent> patentList = (List) this.patentDAO.searchPatent(patentForm);
    		return patentList;
    	}
}
